var Color;
(function (Color) {
    Color[Color["Red"] = 0] = "Red";
    Color[Color["Green"] = 1] = "Green";
    Color[Color["Blue"] = 2] = "Blue";
})(Color || (Color = {}));
var c = Color.Green;
// 默认情况下，从0开始为元素编号。也可以手动的指定成员的数值
(function (Color) {
    Color[Color["Red1"] = 1] = "Red1";
    Color[Color["Green1"] = 2] = "Green1";
    Color[Color["Blue1"] = 3] = "Blue1";
})(Color || (Color = {}));
var c1 = Color.Green1;
// or
(function (Color) {
    Color[Color["Red2"] = 1] = "Red2";
    Color[Color["Green2"] = 2] = "Green2";
    Color[Color["Blue2"] = 3] = "Blue2";
})(Color || (Color = {}));
var c2 = Color.Green2;
(function (Color) {
    Color[Color["Red3"] = 1] = "Red3";
    Color[Color["Green3"] = 2] = "Green3";
    Color[Color["Blue3"] = 3] = "Blue3";
})(Color || (Color = {}));
var colorName = Color[2];
alert(colorName);
